package com.copa.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author copa
 * @createDate 2022-02-17 21:55
 * @function 音乐平台类型
 */
@Getter
@AllArgsConstructor
public enum MusicType {

    QQ(1, "QQ","qqMusic"),

    NETEASECLOUD(2, "网易云","neteaseCloud"),

    KUGOU(3, "酷狗","kugou");
//    MIGU(3, "咪咕","miguMusic");

    private Integer type;

    private String platform;

    private String alias;

//    public static Integer getTypeByValue(short value) {
//        for (MusicType enums : MusicType.values()) {
//            if (enums.getType() == value) {
//                return enums.getType();
//            }
//        }
//        return -1;
//    }
//
//    public static String getDescByValue(short value) {
//        for (MusicType enums : MusicType.values()) {
//            if (enums.getType() == value) {
//                return enums.getType();
//            }
//        }
//        return -1;
//    }
}
